Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: Anthropic Agents Prompt Caching & UI Accessibility Enhancements #6045

Merged
merged 9 commits into from
Feb 26, 2025

Conversation

danny-avila
Copy link
Owner

@danny-avila danny-avila commented Feb 26, 2025

Summary

Closes #5316

  • Bump dependencies: Updated @librechat/agents, @langchain/core, and related packages
  • Implement prompt caching for Anthropic Agents: Added cache control logic in Anthropic prompt handling by refining message type checks to support caching.
  • Extract helper functions: Refactored AnthropicClient by moving header configuration and reasoning settings into dedicated helper functions.
  • Update LLM configuration: Integrated helper functions into Anthropic LLM settings for dynamic header generation based on the model.

Other Changes

  • Deprecate outdated models: Replaced the deprecated Gemini-2.0 flash lite preview identifier with the current supported version.
  • Enhance accessibility: Fixed AgentPanel and AgentSelect focus issues by enforcing consistent component tree rendering and maintaining ComboBox focus during agent ID changes.
  • Migrate form logic: Moved react-hook-form Controller logic from AgentPanel to AgentSelect and removed auto-focus to streamline form interactions.

@danny-avila danny-avila force-pushed the feat/anthropic-reasoning-prompt-caching-agents branch from 1bbd26c to 0f008be Compare February 26, 2025 01:39
@danny-avila danny-avila merged commit e14df59 into main Feb 26, 2025
7 checks passed
@danny-avila danny-avila deleted the feat/anthropic-reasoning-prompt-caching-agents branch February 26, 2025 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: agent using sonnet does not cache prompt
1 participant